package com.arkisv.common.util;

import java.util.UUID;


public class UUIDUtil {
	public static void main(String[] args) {
    	System.out.println(UUIDUtil.getUUID2UpperCase());
    	System.out.println(UUIDUtil.getUUID2LowerCase());
	}

	/**
	 * 生成一个32w位UUID,全大写
	 */
	public static String getUUID2UpperCase(){
		return UUID.randomUUID().toString().replaceAll("-", "").toUpperCase();
	}

	/**
	 * 生成一个32w位UUID,全小写
	 */
	public static String getUUID2LowerCase(){
		return getUUID2UpperCase().toLowerCase();
	}
}
